#ifndef _comthread_HPP
#define _comthread_HPP

#include "stm8l15x.h"



struct STCMDLIST
{
  char scmd[10];
  char (*DoProg) (char *);
};

void com_shell (void);
char hex2char (char i);
extern const struct STCMDLIST stcmdlist[];
extern const char _stcmdlist_len;
void  prog_stop_dealy(u8  cnum ) ;

  



u8   getladdr (  char *s  , char  clen  , u32  *laddr )  ; //



u8  get_value (  char *s , u8 *cvalue);

 
 
 char hex_str ( u32 lvalue , char *s  );
		
				
char checkaddr( unsigned long  laddr )		;	
				

#endif
